package com.yzh.generic;

import java.util.Arrays;

/**
 * @author 于振晗
 * @title: ArrayList1
 * @description: TODO
 * @date 2020年09月04日
 * @path com.yzh.generic
 */
public class ArrayList1<E> implements List1<E>{
    @Override
    public void add(E e) {

    }

    @Override
    public void print(E... e) {
        System.out.println(Arrays.toString(e));
    }

    @Override
    public <T> T println(T t) {

        return t;
    }

    public static void main(String[] args) {
        List1<Integer> list1 = new ArrayList1<Integer>();
        list1.print(23,789);
        Integer println = list1.println(123456);
    }
}
